package com.ruoyi.gcgl.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.gcgl.mapper.SjProcessConfigMapper;
import com.ruoyi.gcgl.domain.SjProcessConfig;
import com.ruoyi.gcgl.service.ISjProcessConfigService;
import com.ruoyi.common.core.text.Convert;

/**
 * 流程人员配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-21
 */
@Service
public class SjProcessConfigServiceImpl implements ISjProcessConfigService 
{
    @Autowired
    private SjProcessConfigMapper sjProcessConfigMapper;

    /**
     * 查询流程人员配置
     * 
     * @param id 流程人员配置主键
     * @return 流程人员配置
     */
    @Override
    public SjProcessConfig selectSjProcessConfigById(Long id)
    {
        return sjProcessConfigMapper.selectSjProcessConfigById(id);
    }

    /**
     * 查询流程人员配置列表
     * 
     * @param sjProcessConfig 流程人员配置
     * @return 流程人员配置
     */
    @Override
    public List<SjProcessConfig> selectSjProcessConfigList(SjProcessConfig sjProcessConfig)
    {
        return sjProcessConfigMapper.selectSjProcessConfigList(sjProcessConfig);
    }

    /**
     * 新增流程人员配置
     * 
     * @param sjProcessConfig 流程人员配置
     * @return 结果
     */
    @Override
    public int insertSjProcessConfig(SjProcessConfig sjProcessConfig)
    {
        return sjProcessConfigMapper.insertSjProcessConfig(sjProcessConfig);
    }

    /**
     * 修改流程人员配置
     * 
     * @param sjProcessConfig 流程人员配置
     * @return 结果
     */
    @Override
    public int updateSjProcessConfig(SjProcessConfig sjProcessConfig)
    {
        return sjProcessConfigMapper.updateSjProcessConfig(sjProcessConfig);
    }

    /**
     * 批量删除流程人员配置
     * 
     * @param ids 需要删除的流程人员配置主键
     * @return 结果
     */
    @Override
    public int deleteSjProcessConfigByIds(String ids)
    {
        return sjProcessConfigMapper.deleteSjProcessConfigByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除流程人员配置信息
     * 
     * @param id 流程人员配置主键
     * @return 结果
     */
    @Override
    public int deleteSjProcessConfigById(Long id)
    {
        return sjProcessConfigMapper.deleteSjProcessConfigById(id);
    }

	@Override
	public List<Map> selecttaskid4pid(Long id) {
		return sjProcessConfigMapper.selecttaskid4pid(id);
	}
}